any

inline fun any(predicate: (T) -> Boolean): Boolean

Returns the result of applying the predicate to the value if this is Some or false if this is None.

Return

The result of applying the predicate to the value if this is Some or false if this is None.

Parameters

predicate

Predicate function.